<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
</html>
<script>
	var str = 'a b c';
	var arr = str.split(' '); //具体的是用空格分隔
	console.log(arr);
	
	//要分隔的符号用正则表示
	//学习到的第一个 \s  在正则里面表示空格的意思
	console.log(str.split(/\s/))
</script>
